#include "timethread.h"

#include <QTime>
#include <QDebug>
#include <QString>

TimeThread::TimeThread() {}

void TimeThread::run()
{
    while(1)
    {
        QString time = QTime::currentTime().toString("hh:mm:ss");
        qDebug() << time;
        emit sendTime(time); //发送信号
        sleep(1);
    }
}
